#ifndef GLRENDERER_H
#define GLRENDERER_H
#include"geomap.h"
#include"spatialindex.h"

class glRenderer
{
public:
    glRenderer();


    //绘制函数
    void draw(geoMap *map);
    void draw(geoLayer *layer);
    void draw(geoPoint *point);
    void draw(geoLineString *lineString);
    void draw(geoPolygon *polygon);
    void draw(geoMultiPoint *multiPoint);
    void draw(geoMultiLineString *multiLineString);
    void draw(geoMultiPolygon *multiPolygon);

    bool drawIndex();
    bool setPaintIndex(spatialIndex* index);

private:
    spatialIndex* index;
};

#endif // GLRENDERER_H
